
package.path = package.path .. ";../fn/?.lua"


json = require ("dkjson")
require('download')
require('file')
require('npm')
require('sys')
require('util')

function installPackage()
    npm_package = {
        'monaco-editor', 'react', 'react-dom', 'dayjs', 'antd', 'icons','marked', 'dexie', 'lodash', 'vis-network'
    }
    -- '@babel/standalone'

    for i = 1, #npm_package do
        package = npm_package[i]
        print('\n======= install npm package ========\n', package, '\n')

        downloadNpm(package)
    end
end

downloadNpm('antd')

